package com.ltx.constant;

public interface Constant {

    String IMAGE_UPLOAD_DIR = "D:\\lesson\\nginx-1.18.0\\html\\hmdp\\imgs\\";
    String USER_NICK_NAME_PREFIX = "user_";
    int DEFAULT_PAGE_SIZE = 5;
    int MAX_PAGE_SIZE = 10;

    String PHONE_IS_INVALID = "手机号码格式不正确";

    String SESSION_ATTRIBUTE_VERIFICATION_CODE = "code";
    String SESSION_ATTRIBUTE_USER = "user";

    String PHONE_REGEXP = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$";

    String EMAIL_REGEXP = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$";

    String PASSWORD_REGEXP = "^\\w{4,32}$";

    String VERIFY_CODE_REGEXP = "^[a-zA-Z\\d]{6}$";
}
